package testGroovy

import groovy.json.JsonSlurper
import groovy.json.JsonParserType

def JSON = '''
	{"resultCode":["5"],"ctxFlowData":{"registerDate":"2009-07-07"},"customerData":{"registerDate":"2015-05-21"}}
'''

def jsonParse = new JsonSlurper().with { it ->
	it.type = JsonParserType.LAX
	it.parseText(JSON)
}

println jsonParse.resultCode[0] instanceof String
println jsonParse.ctxFlowData.registerDate
assert jsonParse.resultCode instanceof List

def list = []
def a = 0
list += a
println list.size()